package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Permission;

import java.util.List;
import java.util.Set;

/**
 * @author mengwei
 * @date 2019/8/21
 * @desc
 */
public interface PermissionDao {

    Set<Permission> findPermissionsByRoleId(Integer id);

    Page<Permission> findPage(String queryString);

    void add(Permission permission);

    Permission findById(Integer id);

    void update(Permission permission);

    void delById(Integer id);

    long findCountByPermissionId(Integer id);

    List<Permission> findAll();
}
